package messages;

public class GetStatusMessage extends Message {

	private String username;
	
	public GetStatusMessage()
	{
		super("GetStatus");
		this.username = "";
	}
	
	public GetStatusMessage(String type, String username)
	{
		super("GetStatus");
		this.username = username;
	}
	
	public String getUsername() { return this.username; }
	public void setUsername(String username) { this.username = username; }
	
	public String toXML()
	{
		String message = "<message>";
        message += "<type>Getstatus</type>";
        message += "<user><username>" + username + "</username></user>";
        message += "</message>";
        
        return message;
	}
}
